<template>
  <div>这是child。。。。</div>
  <h1>first传递的数据-----{{ massage }}</h1>
  <RouterLink to="/child/first" custom v-slot="{ navigate, isActive }">
    <button :class="[isActive && 'router-link-active']" @click="navigate">
      加载
    </button>
  </RouterLink>

  <RouterView></RouterView>
</template>
<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState('child', ['massage'])
  },
  data() {
    return {}
  }
}
</script>
<style scoped></style>
